<%@page import="ognl.IntHashMap.Entry"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
 <%@taglib prefix="s" uri="/struts-tags"%>
<%@page import="zozopo.background.operator.operations.*" %>
<%@page import="zozopo.operations.business.*" %>
<%@page import="zozopo.database.*" %>
<%@page import="java.sql.*" %>
<%
//String uri = (String)session.getAttribute("uri");

String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;

OperatorTB operator = (OperatorTB)session.getAttribute("operatorInfo"); 
//*/
%>
<div style="width: 270px;">
  
  	<s:if test="%{#session.operatorInfo == null}">
  	
  
  		<div style="border:1px solid #ffffff; border-top-color:#6cb1f1; background-color: #e5f3ff; width: 100%; " >
  			其它操作
  		</div>
  		<div >
  			<a href="<%=basePath %>/background/operator/login.jsp">登录ZOZOPO</a>
  		</div>
  	
  			
	</s:if>
  <s:else>
  <div style="border:1px solid ;width: 270; border-color: #014464 ;margin-bottom: 5px;">
		<div style="border-top-color:#6cb1f1; background-color: #014464; width: 100%; bottom: 0px;background: #014464;
	background: -moz-linear-gradient(top, #0272a7, #013953);
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#0272a7), to(#013953)); " >
			
				<img alt="" src="<%=basePath %>/background/icon/app.jpg"/> 其它操作
			
  		</div>
  		<div style="margin-left:2px;">
  			<a href="<%=basePath %>/manual/release.jsp">发布文章</a>
  		</div> 
  		<div style="margin-left:2px;">
  			<a href="<%=basePath %>/manual/releasenewgoods.jsp">新品上架</a>
  		</div>
  		<%
  			if(OperatorOS.operatorFlagLeve(operator, 0, 1)){
		%>
		<div style="margin-left:2px;">
			<a href="<%=basePath %>/manual/prephotomangae.action">像册管理</a>
		</div>
		<div style="margin-left:2px;">
			<a href="<%=basePath %>/manual/uploadimage.jsp">上传图片</a>
		</div>
		<div style="margin-left:2px;">
			<a href="<%=basePath %>/manual/uploadimage2.jsp">批量上传图片</a>
		</div>
		<div style="margin-left:2px;">
			<a href="<%=basePath %>/manual/swfuploadimage.jsp">SWFUpload 批量上传图片(可多选)</a>
		</div>
		
		<%}
		if(OperatorOS.operatorFlagLeve(operator, 4, 1)){
			%>
		<div style="margin-left:2px;">
								<a href="<%=basePath %>/manual/prerecommend.action">推荐正品网店</a>
		</div>
		<div style="margin-left:2px;">
								<a href="<%=basePath %>/business/store.jsp">网店管理</a>
		</div>
		<%} 
			if(OperatorOS.operatorFlagLeve(operator, 2, 1)){
		%>
		<div style="margin-left:2px;">
								<a href="<%=basePath %>/manual/poll.jsp">投票主题</a>
		</div>
		<%} %>
						
				</div>
				
		
		<s:iterator value="#session.operatorlimitedTree">
			<div style="border:1px solid ;width: 270; border-color: #014464; margin-bottom: 5px">
				<s:iterator value="value" id="value" status="status">
					<s:if test="#status.first">
						<div style=" background-color: #014464; width: 270; background: #014464;
							background: -moz-linear-gradient(top, #0272a7, #013953);
							background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#0272a7), to(#013953));" >
									<font color="#ffffff" size="4"><s:property value="#value.name_limited"/></font>					
						</div>
					
					</s:if>
					<div>
					<a href="<%=basePath %><s:property value="#value.url_limited"/>"><s:property value="#value.name_limited"/></a>
					
					 
					 <s:if test="%{#value.mainname_limited != null}">
					 	 <a href="<%=basePath %><s:property value="#value.mainurl_limited"/>" style="color:red">
										<s:property value="#value.mainname_limited"/></a>
					 </s:if>	
					</div>
				</s:iterator>
		 
			</div>
		</s:iterator>
						
  
					
					<%

  				if(OperatorOS.operatorFlagLeve(operator, 32, 1)){
						%>
						<div style="border:1px solid #ffffff; border-top-color:#6cb1f1; background-color: #e5f3ff; " >
							<img alt="" src="<%=basePath %>/background/icon/app.jpg"/> 网站业务
					</div>
			
			
					
					<%
							
					if(OperatorOS.operatorFlagLeve(operator, 32, 1)){
						%>
					<div>
							<a href="<%=basePath %>/business/addstore.jsp">添加正品网店</a>
							
						
					
					</div>
					
					<div>
							<a href="<%=basePath %>/business/storelist.action">正品网店例表</a>
						</div>
					
					<div style="margin-left:2px;">
							<a href="<%=basePath %>/business/managestore.action">管理网店</a>
					</div>
					
					<%} %>
					<div style="margin-left:2px;">
								<a href="<%=basePath %>/business/preipreport.action">网店IP报表</a>
					</div>
						
						<% 
						if(OperatorOS.operatorFlagLeve(operator, 33, 1)){
						%>
						<div style="margin-left:2px;">
								<a href="<%=basePath %>/business/managegoods.action">管理手工商品推荐</a>
						</div>
						
						<div style="margin-left:2px;">
								<a href="<%=basePath %>/business/addgoods.jsp">添加手工商品推荐</a>
						</div>
						<%} %>
					
			
						 	
						<%
							} 
  				if(OperatorOS.operatorFlagLeve(operator, 16, 1)){
						%>
						<div style="border:1px solid #ffffff; border-top-color:#6cb1f1; background-color: #e5f3ff; " >
							<img alt="" src="<%=basePath %>/background/icon/app.jpg"/> 网站管理
					</div>
		
					 
					<%
					if(OperatorOS.operatorFlagLeve(operator, 17, 1)){
					%>
						<div style="margin-left:2px;">
								<a href="<%=basePath %>/background/operator/manageoperator_background.action">操作员管理</a>
								
						</div>
						
						<div style="margin-left:2px;">
								<a href="#">数据字典管理(未加入)</a>
								
						</div>
					<%} %>
	
						 	
					<%} %>
		</s:else>
</div>
